//用户退出
function logout(){
    layer.confirm("确定要退出系统吗?", function(index) {
        $.ajax({
            type: "POST",
            url: 'login/logout',
            cache: false,
            success: function(data){
                window.location.href='login/input';
            }
        });
    });
}